package com.example.boke.mapper;

import com.example.boke.entity.Boke;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BokeMapper {

    @Insert("insert into boke values(null,#{content},#{author},#{url}"
            + ",#{created},#{userId})")
    void insert(Boke boke);

    @Delete("delete from boke where id=#{id}")
    void delete(int id);
}
